package com.coco.bargain;

import com.coco.common.util.IdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author minicoco
 * @version 1.0
 * @date 2021/7/21 20:11
 */

@SpringBootApplication(scanBasePackages = "com.coco")
@EnableDiscoveryClient
@EnableScheduling
@MapperScan("com.coco.bargain.mapper")
@EnableFeignClients
public class CocoBargainController {

    public static void main(String[] args) {
        SpringApplication.run(CocoBargainController.class,args);
    }

    @Bean
    public IdWorker getIdWork(){
        return new IdWorker();
    }
}
